<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>扫一扫 - 药品溯源防伪系统</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <link rel="stylesheet" href="style.css">
    <style>
        .scan-box {
            position: relative;
            width: 250px;
            height: 250px;
            border: 2px solid rgba(255, 255, 255, 0.8);
            border-radius: 16px;
            box-shadow: 0 0 0 10000px rgba(0, 0, 0, 0.65);
        }

        .scan-line {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(to right, transparent, #007aff, transparent);
            animation: scan 2s linear infinite;
        }

        @keyframes scan {
            0% {
                top: 0;
            }
            50% {
                top: 100%;
            }
            100% {
                top: 0;
            }
        }

        .corner {
            position: absolute;
            width: 20px;
            height: 20px;
            border: 2px solid #007aff;
        }

        .top-left {
            top: -2px;
            left: -2px;
            border-right: none;
            border-bottom: none;
            border-top-left-radius: 8px;
        }

        .top-right {
            top: -2px;
            right: -2px;
            border-left: none;
            border-bottom: none;
            border-top-right-radius: 8px;
        }

        .bottom-left {
            bottom: -2px;
            left: -2px;
            border-right: none;
            border-top: none;
            border-bottom-left-radius: 8px;
        }

        .bottom-right {
            bottom: -2px;
            right: -2px;
            border-left: none;
            border-top: none;
            border-bottom-right-radius: 8px;
        }
    </style>
</head>
<body class="bg-black">
    <!-- iOS 状态栏 -->
    <div class="ios-status-bar">
        <div>
            <span class="text-sm font-medium text-white">13:37</span>
        </div>
        <div class="flex items-center text-white">
            <i class="fas fa-signal mr-1"></i>
            <i class="fas fa-wifi mr-1"></i>
            <i class="fas fa-battery-full"></i>
        </div>
    </div>

    <!-- 内容区域 -->
    <div class="content-area flex flex-col items-center justify-between h-full">
        <!-- 顶部导航 -->
        <div class="w-full flex justify-between items-center pb-4">
            <button class="px-4 py-2 text-white">
                <i class="fas fa-arrow-left"></i>
            </button>
            <span class="text-white font-medium">扫描药品溯源码</span>
            <button class="px-4 py-2 text-white">
                <i class="fas fa-ellipsis-v"></i>
            </button>
        </div>

        <!-- 扫码区域 -->
        <div class="flex-1 flex flex-col items-center justify-center">
            <div class="scan-box mb-8">
                <div class="scan-line"></div>
                <div class="corner top-left"></div>
                <div class="corner top-right"></div>
                <div class="corner bottom-left"></div>
                <div class="corner bottom-right"></div>
            </div>
            <p class="text-white text-center mt-8">将药品包装上的二维码放入框内</p>
        </div>

        <!-- 底部功能区 -->
        <div class="w-full pb-16">
            <div class="flex justify-around items-center mb-4">
                <div class="text-center">
                    <div class="w-14 h-14 rounded-full bg-white bg-opacity-10 flex items-center justify-center mx-auto mb-2">
                        <i class="fas fa-image text-white text-xl"></i>
                    </div>
                    <span class="text-xs text-white">相册</span>
                </div>
                <div class="text-center">
                    <div class="w-14 h-14 rounded-full bg-white flex items-center justify-center mx-auto mb-2">
                        <i class="fas fa-qrcode text-blue-500 text-xl"></i>
                    </div>
                    <span class="text-xs text-white">扫码</span>
                </div>
                <div class="text-center">
                    <div class="w-14 h-14 rounded-full bg-white bg-opacity-10 flex items-center justify-center mx-auto mb-2">
                        <i class="fas fa-keyboard text-white text-xl"></i>
                    </div>
                    <span class="text-xs text-white">输入码</span>
                </div>
            </div>
        </div>
    </div>

    <!-- 底部TabBar被隐藏，因为在相机扫码页面通常不显示底部导航 -->
</body>
</html> 